import request from '~/utils/request'

const API_NAME = '/web/edu/teachers'

export default {
  // 获取所有讲师
  queryAll() {
    return request({
      url: `${API_NAME}/`,
      method: 'get'
    })
  },
  // 根据ID获取一个讲师详情
  queryInfoById(id) {
    return request({
      url: `${API_NAME}/${id}`,
      method: 'get'
    })
  }
}
